<%--
  Created by IntelliJ IDEA.
  User: zwj
  Date: 2016/10/6
  Time: 10:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<div class="download-content">
  <c:forEach items="${result.data.list}" var="data">
    <div class="dlc-item">
      <div class="dl-bd">
        <h4>${data.ITEM_NAME}<i></i></h4>
        <p>下载数：20</p>
      </div>
      <a href="#" class="dl-ft">
        <i></i>
        <p><a href="javascript:downloadTable('${data.GUID}','T')" >下载表格</a></p>
      </a>
    </div>
  </c:forEach>
</div>

  <div id="page" class="pagination">

  </div>
<script>
  $(function(){
    if(${result.data.totalPage}>0)
    {
      $("#page").jqPaginator({
        totalPages: ${result.data.totalPage},
        visiblePages: 10,
        currentPage: ${result.data.pageIndex},
        pageSize: ${result.data.pageSize},
        first: '<li class="first"><a href="javascript:void(0);">首页<\/a><\/li>',
        prev: '<li class="prev"><a href="javascript:void(0);">上一页<\/a><\/li>',
        next: '<li class="next"><a href="javascript:void(0);">下一页<\/a><\/li>',
        last: '<li class="last"><a href="javascript:void(0);">末页<\/a><\/li>',
        page: '<li class="page"><a href="javascript:void(0);">{{page}}<\/a><\/li>',
        onPageChange: function (n,type) {
            if(type == "change")
            {
              //getList(n, ps,createPage);
              console.log(n);
              caseJz(jz,${result.data.pageSize},n);
            }
        }
      });
    }
  });



</script>